<?php
/**
 * 入口文件
 * User: Administrator
 * Date: 2019/4/2
 * Time: 10:53
 */
define('ROOT_PATH',realpath('.'));
define('CORE',ROOT_PATH.'/core');
define('APP',ROOT_PATH.'/app');
define('MODULE','app');

define('DEBUG',true); //调试模式 true开启 false关闭
if (DEBUG) {
    ini_set('display_errors','On');
} else {
    ini_set('display_errors','Off');
}

include CORE.'/common/function.php';
include CORE.'/free.php';
spl_autoload_register('\core\free::load');
\core\free::run(); //启动框架